import { put } from 'redux-saga/effects';

import { setUserInfo } from '../redux/actions/user';

export function* fetchUserInfo() {
  try {
    const data = {
      userInfo: {
        name: '墨绿青苔',
      },
    };
    console.log('fetchUserInfo');
    yield put(setUserInfo(data));
  } catch (error) {
    console.log(error);
  }
}
